package com.cxl.price.service;

import java.io.UnsupportedEncodingException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.cxl.price.bean.Goods;
import com.cxl.price.bean.Shop;
import com.cxl.price.dao.GoodsDao;
import com.summer.core.service.BaseService;
import com.taobao.api.ApiException;
import com.taobao.api.domain.Item;

public interface GoodsService  extends BaseService<Goods, String>{
	
	
	/**
	 * 批量导入淘宝数据
	 * @param url
	 */
	public void addTaoBaoGoods(List<Item> items,HttpServletRequest req)  throws Exception;
	
	
	/**
	 * 匹配商店库理商店 一次匹配多个
	 * @param shopList 商店list
	 * @param goodsList 商品 list
	 * @throws ClassNotFoundException
	 * @throws InstantiationException
	 * @throws IllegalAccessException
	 * @throws UnsupportedEncodingException
	 */
	public void addSearchAllShopAndImport(List<Shop> shopList,List<Goods> goodsList) throws Exception;
	
	/**
	 * 匹配单个
	 * @param shopList
	 * @param goods
	 * @throws Exception
	 */
	public void addSearchAllShopAndImport(List<Shop> shopList,Goods goods) throws Exception;
	
	/**
	 * 删除taobao下价商品
	 * @param goods
	 */
	public void deleteTaoBaoGoods(Goods goods);
	
	
	
	
	
}
